package com.cskaoyan.service;

import com.cskaoyan.module.bean.BaseRespVo;
import com.cskaoyan.module.pojo.MarketAdmin;
import com.cskaoyan.module.pojo.MarketRole;
import com.cskaoyan.module.pojo.MarketStorage;
import com.cskaoyan.module.systemVO.PermissionsBO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SystemService {
    BaseRespVo createAdmin(MarketAdmin marketAdmin);

    BaseRespVo createRole(MarketRole marketRole);

    BaseRespVo updateRole(MarketRole marketRole);

    BaseRespVo listRole(Integer page, Integer limit,String name, String sort, String order);

    BaseRespVo deleteRole(MarketRole marketRole);

    BaseRespVo createStorage(MultipartFile uploadFile, HttpServletRequest request);

    BaseRespVo roleOptions();

    BaseRespVo listAdmin(Integer page, Integer limit, String username, String sort, String order);

    BaseRespVo updateAdmin(MarketAdmin marketAdmin);

    BaseRespVo deleteAdmin(MarketAdmin marketAdmin);

    BaseRespVo listLog(Integer page, Integer limit, String name, String sort, String order);

    BaseRespVo listStorage(Integer page, Integer limit, String key, String name, String sort, String order);

    BaseRespVo updateStorage(MarketStorage marketStorage);

    BaseRespVo deleteStorage(MarketStorage marketStorage);

    BaseRespVo rolePermissions(Integer roleId);

    BaseRespVo updatePermissions(PermissionsBO permissionsBO);
}
